#!/user/bin/env python
# -*- coding: utf-8 -*-
''' 
Author: Sjy
LastEditTime: 2024-12-05 10:10:02
Description: 
'''

__all__= []

import gui.controls.envs as envs
from .modules import module_manager

class IPIMASToolbar(envs.Ribbonbar):
    def __init__(self, params:dict={}, parent=None):
        super(IPIMASToolbar, self).__init__(params)
        envs.signals.sigChangedRibbonbarCategory.connect( lambda params, ribbon=self: module_manager.changed_ribbonbar_category(ribbon, params))
    def on_load(self) -> None:
        self.set_ribbon_height(120)
        module_manager.init_module_toolbar(ribbon=self)





